package cn.aopmin;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@Slf4j
@SpringBootApplication
public class AppDemo {
    public static void main(String[] args) {
        ApplicationContext ctx = SpringApplication.run(AppDemo.class, args);
        log.info("启动成功 ヾ(￣▽￣)");
        log.info("===============================================================");
        log.info("运行bean的数量: {}",  ctx.getBeanDefinitionCount());
        String[] beanNames = ctx.getBeanDefinitionNames();
        for (String beanName : beanNames) {
            log.info("正在运行的Bean: {}", beanName);
        }
        log.info("===============================================================");
    }
}